import request from '@/utils/request'
// 绑定学生
export function setStudent(query) {
  return request({
    url: '/wechat/setOpen/updateStuWxOpenId',
    method: 'get',
    params: query
  })
}
// 绑定家长
export function setJiaZhang(query) {
  return request({
    url: '/wechat/setOpen/updateParentWxOpenId',
    method: 'get',
    params: query
  })
}
// 绑定老师
export function setTeacher(query) {
  return request({
    url: '/wechat/setOpen/updateTeacherWxOpenId',
    method: 'get',
    params: query
  })
}

//获取手机验证码
export function sendValidCode(phone) {
  return request({
    url: '/wechat/setOpen/sendValidCode?phone='+phone,
    method: 'get',
  })
}
